3.10.36 \(\int x^{1+2 n} (a+b x)^n (2 a+3 b x) \, dx\) [936]

Optimal. Leaf size=22 \[ \frac {x^{2 (1+n)} (a+b x)^{1+n}}{1+n} \]

[Out]

x^(2+2*n)*(b*x+a)^(1+n)/(1+n)

________________________________________________________________________________________

Rubi [A]
time = 0.00, antiderivative size = 22, normalized size of antiderivative = 1.00, number of steps used = 1, number of rules used = 1, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.043, Rules used = {75} \begin {gather*} \frac {x^{2 (n+1)} (a+b x)^{n+1}}{n+1} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[x^(1 + 2*n)*(a + b*x)^n*(2*a + 3*b*x),x]

[Out]

(x^(2*(1 + n))*(a + b*x)^(1 + n))/(1 + n)

Rule 75

Int[((a_.) + (b_.)*(x_))*((c_.) + (d_.)*(x_))^(n_.)*((e_.) + (f_.)*(x_))^(p_.), x_Symbol] :> Simp[b*(c + d*x)^
(n + 1)*((e + f*x)^(p + 1)/(d*f*(n + p + 2))), x] /; FreeQ[{a, b, c, d, e, f, n, p}, x] && NeQ[n + p + 2, 0] &
& EqQ[a*d*f*(n + p + 2) - b*(d*e*(n + 1) + c*f*(p + 1)), 0]

Rubi steps

\begin {align*} \int x^{1+2 n} (a+b x)^n (2 a+3 b x) \, dx &=\frac {x^{2 (1+n)} (a+b x)^{1+n}}{1+n}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.04, size = 22, normalized size = 1.00 \begin {gather*} \frac {x^{2+2 n} (a+b x)^{1+n}}{1+n} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[x^(1 + 2*n)*(a + b*x)^n*(2*a + 3*b*x),x]

[Out]

(x^(2 + 2*n)*(a + b*x)^(1 + n))/(1 + n)

________________________________________________________________________________________

Maple [A]
time = 0.08, size = 23, normalized size = 1.05

method result size
gosper \(\frac {x^{2+2 n} \left (b x +a \right )^{1+n}}{1+n}\) \(23\)
risch \(\frac {\left (b x +a \right ) x \,x^{1+2 n} \left (b x +a \right )^{n}}{1+n}\) \(27\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^(1+2*n)*(b*x+a)^n*(3*b*x+2*a),x,method=_RETURNVERBOSE)

[Out]

x^(2+2*n)*(b*x+a)^(1+n)/(1+n)

________________________________________________________________________________________

Maxima [A]
time = 0.33, size = 32, normalized size = 1.45 \begin {gather*} \frac {{\left (b x^{3} + a x^{2}\right )} e^{\left (n \log \left (b x + a\right ) + 2 \, n \log \left (x\right )\right )}}{n + 1} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^(1+2*n)*(b*x+a)^n*(3*b*x+2*a),x, algorithm="maxima")

[Out]

(b*x^3 + a*x^2)*e^(n*log(b*x + a) + 2*n*log(x))/(n + 1)

________________________________________________________________________________________

Fricas [A]
time = 0.50, size = 29, normalized size = 1.32 \begin {gather*} \frac {{\left (b x^{2} + a x\right )} {\left (b x + a\right )}^{n} x^{2 \, n + 1}}{n + 1} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^(1+2*n)*(b*x+a)^n*(3*b*x+2*a),x, algorithm="fricas")

[Out]

(b*x^2 + a*x)*(b*x + a)^n*x^(2*n + 1)/(n + 1)

________________________________________________________________________________________

Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 53 vs. \(2 (17) = 34\).
time = 18.42, size = 53, normalized size = 2.41 \begin {gather*} \begin {cases} \frac {a x^{2} x^{2 n} \left (a + b x\right )^{n}}{n + 1} + \frac {b x^{3} x^{2 n} \left (a + b x\right )^{n}}{n + 1} & \text {for}\: n \neq -1 \\2 \log {\left (x \right )} + \log {\left (\frac {a}{b} + x \right )} & \text {otherwise} \end {cases} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x**(1+2*n)*(b*x+a)**n*(3*b*x+2*a),x)

[Out]

Piecewise((a*x**2*x**(2*n)*(a + b*x)**n/(n + 1) + b*x**3*x**(2*n)*(a + b*x)**n/(n + 1), Ne(n, -1)), (2*log(x)
+ log(a/b + x), True))

________________________________________________________________________________________

Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 47 vs. \(2 (22) = 44\).
time = 0.54, size = 47, normalized size = 2.14 \begin {gather*} \frac {{\left (b x + a\right )}^{n} b x^{2} e^{\left (2 \, n \log \left (x\right ) + \log \left (x\right )\right )} + {\left (b x + a\right )}^{n} a x e^{\left (2 \, n \log \left (x\right ) + \log \left (x\right )\right )}}{n + 1} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^(1+2*n)*(b*x+a)^n*(3*b*x+2*a),x, algorithm="giac")

[Out]

((b*x + a)^n*b*x^2*e^(2*n*log(x) + log(x)) + (b*x + a)^n*a*x*e^(2*n*log(x) + log(x)))/(n + 1)

________________________________________________________________________________________

Mupad [B]
time = 1.17, size = 41, normalized size = 1.86 \begin {gather*} \left (\frac {a\,x\,x^{2\,n+1}}{n+1}+\frac {b\,x^{2\,n+1}\,x^2}{n+1}\right )\,{\left (a+b\,x\right )}^n \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^(2*n + 1)*(2*a + 3*b*x)*(a + b*x)^n,x)

[Out]

((a*x*x^(2*n + 1))/(n + 1) + (b*x^(2*n + 1)*x^2)/(n + 1))*(a + b*x)^n

________________________________________________________________________________________